package com.bjsxt.chapter7_bridge;

/**
 * @ClassName Computer
 * @Description 电脑接口
 * @Author 黑马程序员
 * @Date 18:31 2024/6/21
 * @Version 1.0
 **/
public interface Computer {

    void sale();

}

class DeskTop implements Computer {

    @Override
    public void sale() {
        System.out.println("销售台式机");
    }
}

class LapTop implements Computer {

    @Override
    public void sale() {
        System.out.println("销售笔记本电脑");
    }
}

class Pad implements Computer {

    @Override
    public void sale() {
        System.out.println("销售平板电脑");
    }
}

class LenovoDeskTop extends DeskTop {

    @Override
    public void sale() {
        System.out.println("销售联想台式机");
    }
}

class LenovoLapTop extends LapTop {

    @Override
    public void sale() {
        System.out.println("销售联想笔记本电脑");
    }
}

class LenovoPad extends Pad {

    @Override
    public void sale() {
        System.out.println("销售联想平板电脑");
    }
}

class DellDeskTop extends DeskTop {

    @Override
    public void sale() {
        System.out.println("销售戴尔台式机");
    }
}

class DellLapTop extends LapTop {

    @Override
    public void sale() {
        System.out.println("销售戴尔笔记本电脑");
    }
}

class DellPad extends Pad {

    @Override
    public void sale() {
        System.out.println("销售戴尔平板电脑");
    }
}

class HaseeDeskTop extends DeskTop {

    @Override
    public void sale() {
        System.out.println("销售神舟台式机");
    }
}

class HaseeLapTop extends LapTop {

    @Override
    public void sale() {
        System.out.println("销售神舟笔记本电脑");
    }
}

class HaseePad extends Pad {

    @Override
    public void sale() {
        System.out.println("销售神舟平板电脑");
    }
}
